package cn.wolfcode.p2p.business.mapper;

import cn.wolfcode.p2p.base.qo.QueryObject;
import cn.wolfcode.p2p.business.domain.BidRequest;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface BidRequestMapper {

    int insert(BidRequest record);

    BidRequest selectByPrimaryKey(Long id);

    List<BidRequest> queryData(QueryObject qo);

    int updateByPrimaryKey(BidRequest record);

    List<BidRequest> queryPendingBidRequestListInOneHour(@Param("endDate") Date endDate, @Param("bidRequestState") int bidRequestState);

    List<BidRequest> queryPassDisableDateBidRequestListInOneHour(@Param("endDate") Date endDate, @Param("bidRequestState") int bidRequestState);
}